package main

func main() {
	sum := 0
	for i := 0; i <= 10; i++ {
		sum += i
	}
	println("s1 => ", sum)
	for sum <= 20 {
		sum++
	}
	println("s2 => ", sum)

	strs := []string{"a", "b"}
	for i, s := range strs {
		println(i, s)
	}

	nums := [6]int{1, 2, 3, 4, 5}
	for i, x := range nums {
		println(i, x)
	}

	for true {
		if sum > 30 {
			break
		}
	}

R:
	for true {
		if sum > 50 {
			break R // continue用法与break一致
		}
	}
	if sum < 10 {
		goto R
	}
}
